Skip to content

feat(task-panel): hide the side column of the two-column task view - #369

Open
gnutix wants to merge 1 commit into
johannesjo:mainfrom
gnutix:feat/hide-task-side-column
Open

gnutix wants to merge 1 commit into
johannesjo:mainfrom
gnutix:feat/hide-task-side-column

Conversation

@gnutix

@gnutix gnutix commented Nov 13, 2026 •

Copy link
Copy Markdown

What

In the two-column task view (focus mode or a widened tile), a pill on the boundary between the agent terminal and the side column hides the side column and brings it back. The hidden column takes everything in it: task context, changed files with the tour button, notes and shells. The terminal column then gets the whole task width.

Relation to #204

#204 asks for a collapse toggle in the header of each secondary section (notes, changed files, steps, shells), persisted per task, plus narrow-panel defaults, a consolidated badge row and a merged coordinator banner. This PR does none of that and does not close it. It solves a neighbouring problem: giving the agent terminal the full width in the two-column view, by hiding the whole side column at once. The two can coexist; per-section toggles would still help inside the column and in the stacked layout, which this PR leaves unchanged.

One deliberate difference from #204's suggestion: the hidden state is a global setting, not per task. Hiding the column is a preference about how a task view should look, so a new task opens the way the last one was left. Happy to make it per task (via panelUserSize) if you prefer #204's approach.

Screenshots

A task in focus mode, from the showcase demo workspace (scripts/showcase).

Before: the side column is always there.

Before: the two-column task view with its side column

After, column shown: the pill on the column boundary hides it.

After: the side column shown, with the hide pill on its boundary

After, column hidden: the terminal takes the whole width; the pill at the right edge brings the column back.

After: the side column hidden, with the show pill at the right edge

How

  • Placement: the pill uses the same look as the board side panel's close tab, so the two read as one pattern. That look moves from task-board.css to a shared .edge-tab class in styles.css. The task's pill is placed with CSS anchor positioning on the column's resize handle, so it follows a drag without measuring. anchor-scope on the task body keeps each task's pill on its own handle. Once the column is hidden, the pill sits at the right edge of the task body and points back.
  • State: a global taskSideCollapsed setting, persisted like taskBriefs (omitted from the file when off) and included in the autosave snapshot, so it survives a restart.
  • Focus: collapsing moves focus out of a side pane to the terminal. Focus moving into a pane of the hidden column, such as a new shell or a keyboard jump to notes, shows the column again. While the column is hidden, the split focus grid has only the terminal column, so arrow keys skip it.
  • Task context: with the column hidden, task context returns to the header strip that the stacked view uses.
  • No remount: the split columns are now created once, so toggling keeps the terminal column mounted.

The stacked layout (narrow tiles) is unchanged.

Verification

  • npm run check passes, and so do npm test (unit 6302 passed, client 2665 passed).
  • New tests cover the TaskPanel toggle (it hides and restores the column, keeps the terminal element, moves focus out, and a focus jump into the column shows it again), the focus grid while the column is hidden, the persistence round trip, and the autosave snapshot.
  • happy-dom does not lay out pages, so these tests do not check the pill's anchor placement; the screenshots above, from the built app, do.

🤖 Generated with Claude Code (Opus 5.5)

A pill on the boundary between the terminal and the side column hides
the column (task context, changed files, notes and shells) and brings
it back, so the agent's terminal can take the whole task width. The
pill is anchored to the column's resize handle, so it follows a drag,
and shares its look with the board side panel's close tab, now the
`.edge-tab` class in styles.css.

The choice is global and kept across restarts. Focus moving to a pane
of the hidden column, such as a new shell or a keyboard jump to the
notes, shows it again, and keyboard navigation skips it while hidden.
With the column hidden, task context returns to the header strip.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@gnutix
gnutix marked this pull request as draft November 13, 2026 14:46
@gnutix
gnutix marked this pull request as ready for review November 13, 2026 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant